<?php
namespace app\validate;

use think\Validate;

class BankCard extends Validate
{
    protected $rule = [
        'name' => 'require',
        'bank' => 'require|unique:BankCard',
    ];

    protected $message = [
        'name.require' => '请输入名字',
        'bank.require' => '请输入银行卡',
        'bank.unique' => '银行卡已经存在',
    ];

}